package com.ruoyi.device.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 移动设备信息对象 sys_device
 * 
 * @author ruoyi
 * @date 2022-05-13
 */
public class SysDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long deviceId;

    /** 名称 */
    @Excel(name = "名称")
    private String deviceName;

    /** 型号 */
    @Excel(name = "型号")
    private String deviceModel;

    /** 分组 */
    @Excel(name = "分组")
    private Integer deviceGroup;

    /** 最后一次pong */
    @Excel(name = "最后一次pong")
    private Long deviceLastPong;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String deviceStatus;

    /** root状态（0未root 1已root 2自编译系统） */
    @Excel(name = "root状态", readConverterExp = "0=未root,1=已root,2=自编译系统")
    private String deviceRoot;

    /** sn号 */
    @Excel(name = "sn号")
    private String deviceSn;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceModel(String deviceModel) 
    {
        this.deviceModel = deviceModel;
    }

    public String getDeviceModel() 
    {
        return deviceModel;
    }
    public void setDeviceGroup(Integer deviceGroup) 
    {
        this.deviceGroup = deviceGroup;
    }

    public Integer getDeviceGroup() 
    {
        return deviceGroup;
    }
    public void setDeviceLastPong(Long deviceLastPong) 
    {
        this.deviceLastPong = deviceLastPong;
    }

    public Long getDeviceLastPong() 
    {
        return deviceLastPong;
    }
    public void setDeviceStatus(String deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceStatus() 
    {
        return deviceStatus;
    }
    public void setDeviceRoot(String deviceRoot) 
    {
        this.deviceRoot = deviceRoot;
    }

    public String getDeviceRoot() 
    {
        return deviceRoot;
    }
    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("deviceModel", getDeviceModel())
            .append("deviceGroup", getDeviceGroup())
            .append("deviceLastPong", getDeviceLastPong())
            .append("deviceStatus", getDeviceStatus())
            .append("deviceRoot", getDeviceRoot())
            .append("deviceSn", getDeviceSn())
            .toString();
    }
}
